package online.lmds.sdmanage.main.device.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import online.lmds.sdmanage.common.entity.BaseEntity;

import java.sql.Time;
import java.util.Date;

/**
 * Created by Brighten Ma on 2017/5/29.
 * 设备运行记录
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class RunLog extends BaseEntity {

    private Integer id;

    private String  deviceUid;

    private Integer status;

    private Time runTime;


    public RunLog() {
    }

    public RunLog(String deviceUid) {
        this.deviceUid = deviceUid;
    }

    public RunLog(String deviceUid, Integer status) {
        this.deviceUid = deviceUid;
        this.status = status;
    }

    public RunLog(Device device) {
        this.deviceUid = device.getUid();
        this.status = device.getStatus();
    }


    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceUid() {
        return deviceUid;
    }

    public void setDeviceUid(String deviceUid) {
        this.deviceUid = deviceUid;
    }

    @Override
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public Time getRunTime() {
        return runTime;
    }

    public void setRunTime(Time runTime) {
        this.runTime = runTime;
    }
}
